package com.mallcloud.mall.product.api.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@ApiModel(value = "AttrExtendVO", description = "属性关联信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AttrExtendVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "规格属性id")
    private Long attrId;

    @ApiModelProperty(value = "属性名称")
    private String attrName;

    /**
     * {@link com.mallcloud.mall.common.core.constant.enums.mall.ProductEnum}
     */
    @ApiModelProperty(value = "属性类型 0:销售属性，1:基本属性")
    private Integer attrType;

    @ApiModelProperty(value = "属性描述")
    private String attrDesc;

    @ApiModelProperty(value = "属性值id")
    private Long attrValueId;

    @ApiModelProperty(value = "属性值名称")
    private String attrValueName;

    public AttrExtendVO(Long attrId, Long attrValueId) {
        this.attrId = attrId;
        this.attrValueId = attrValueId;
    }
}
